function minSubsequence(nums: number[]): number[] {
  const total = nums.reduce((a, b) => a + b)
          nums.sort((a, b) => b - a)
          let bigChildTotal = 0
          // const arr = []
          let i = 0
          while (total - bigChildTotal >= bigChildTotal) {
            // arr.push(nums[i])
            bigChildTotal += nums[i]
            i++
          }
          nums.length = i
          return nums
  };

  export {}